'use strict';

function calculate_elements_sum(collection) {
  //在这里写入代码
  let arr=collection.reduce(function(previousValue,currentValue){
    return previousValue+currentValue;
  });
  return arr;
}

module.exports = calculate_elements_sum;

